package com.xzy.mapper;

import com.xzy.custom.Page;
import com.xzy.entities.SysRole;
import com.xzy.web.form.SysRoleForm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TODO
 *
 * @author XiangZhongyi
 * ClassName: 权限管理的映射器
 * date: 2021/9/20 20:19
 */
@Repository
public interface SysRoleMapper {

    void save(SysRole role);

    Integer findAllUserTypeCount(@Param("page")Page page,@Param("name") String name);

    List<SysRole> findAllUserType(@Param("page")Page page,@Param("name") String name);

    SysRole findById(@Param("id")Integer id);

    void updateById(@Param("form") SysRoleForm form);

    void insertType(@Param("form") SysRoleForm form);

    void deleteById(@Param("parseInt") int parseInt);

    List<SysRole> findAllUserType1();

    SysRole findByRole();

    List<SysRole> findByUserId(@Param("id") Integer id);
}
